package gorminit

import (
	"gorm.io/gorm"
	"gorm.io/plugin/soft_delete"
)

type IDModel struct {
	ID        int64   `gorm:"primary_key" json:"id"`
}

type DBModel struct {
	*gorm.DB  `gorm:"-" json:"-"`
}

type Model struct {
	CreatedAt int64 `gorm:"autoCreateTime" json:"created_at"`
	UpdatedAt int64 `gorm:"autoUpdateTime" json:"updated_at"`
}

type CreateAtModel struct {
	CreatedAt int64 `gorm:"autoCreateTime" json:"created_at"`
}

type DeletedAtModel struct {
	DeletedAt soft_delete.DeletedAt `json:"-"`
}
